package chapter02.common;

public class StandardMessageRender implements MessageRender {

    private MessageProvider messageProvider;


    @Override
    public void render() {
        String message = messageProvider.getMessage();
        System.out.println(message);

    }

    @Override
    public void setMessageProvider(MessageProvider messageProvider) {
        this.messageProvider = messageProvider;
    }
}
